Manual:$wgJsMimeType

Details
Use this variable to set the media type (MIME type) which is used for scripts written in the JavaScript scripting language.

See RFC 4329 and MediaWiki bug #2064 for details.

This feature has been available since CVS-HEAD-21:00:49+0000 (1.5-cvs).

NOTE: In theory, this should be set to  for all new wikis. Standard-compliant browsers support this setting. Internet Explorer from Microsoft does not support it in its current version (version 7).