title: Using <h:outputScript> to add javascript code in JSF
body: <p>I'm trying to run some basic javascript code with JSF 2.
  I'm using the following code to do so:</p>
  
  <pre><code>&lt;h:outputScript target="head"&gt;
      var props = $.event.props;
  &lt;/h:outputScript&gt;
  </code></pre>
  
  <p>Looking at the source of the page I can't find any evidence of this code.
  I thought that was the correct way to work with javascript code in JSF.
  Should I use the <code>&lt;script&gt;</code> tag of html instead?</p>
  
  <p>Thanks!</p>