rem: var i = this.name.lastIndexOf("."); if (i > -1) res.write(this.name.substring(i+1, this.name.length)); 
add: if (this.mimetype) res.write(this.mimetype.substring(this.mimetype.indexOf("/") + 1)); else { var i = this.name.lastIndexOf("."); if (i > -1) res.write(this.name.substring(i+1, this.name.length)); } 
context: function filetype_macro(param) {   var i = this.name.lastIndexOf(".");   if (i > -1)      res.write(this.name.substring(i+1, this.name.length));   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/bc132661c0007f564d9027b5af151704ba7ffdc7/macros.js/buggy/code/File/macros.js