In an .htaccess file one might set the mimetype for a given extension like:
AddType application/javascript .js
How would one set the mimety
You can use the container to match the file's name before adding a type for it:
AddType application/ecmascript .js