send correct mime type for .js clients