Fixed issue where mime type of JavaScript is plaintext.