title: Magento add Js to the footer
body: <p>I am trying to load js file in the footer of my magento. I am using this code but it give me back an error. Any help? Thanks a lot! </p>
  
  <pre><code>code used in local.xml: 
  
  &lt;layout&gt;
  &lt;default&gt;
      &lt;reference name="footer"&gt;
          &lt;action method="addJs"&gt;&lt;script&gt;js/file.js&lt;/script&gt;&lt;/action&gt;
      &lt;/reference&gt;
  &lt;/default&gt;
  &lt;/layout&gt;
  </code></pre>