Fixed javascript and css files not detecting mimetype properly