title: How can I get JSF 2.0 to include JS as 'application/javascript' instead of 'text/javascript'
body: <p>In our JSF 2.0 application at work, we include several javascript files via <code>&lt;h:outputscript&gt;</code>. </p>
  
  <pre><code>&lt;h:outputScript library="javascript" name="DoStuff.js"/&gt;
  </code></pre>
  
  <p>The resulting html references them as 'text/javascript'.</p>
  
  <pre><code>&lt;script type="text/javascript" src="/mycontext/javax.faces.resource/DoStuff.js.jsf?ln=javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>According to <a href="https://stackoverflow.com/questions/876561/when-serving-javascript-files-is-it-better-to-use-the-application-javascript-or">this question</a>, "text/javascript" is obsolete, what's more, htmlunit complains about the type rather verbosely.
  Of course, everything works just fine and I could shut off htmlunit's logging, but I'd rather have JSF generate the correct type.</p>
  
  <p>Is there a way to override the type chosen by <code>&lt;h:outputscript&gt;</code>?</p>