fix file ext, fix .js MIME