JS mime type fix