title: How can you add in Javascript resources at the very bottom of an xpage?
body: <p>I need to include a javascript file right at the end of the xpage so it gets loaded after the XSP.addOnLoad event code which is generated automatically  e.g.</p>
  
  <pre><code>XSP.addOnLoad(function() {
  XSP.attachEvent....
  }
  &lt;script src="my.js"&gt;
  </code></pre>
  
  <p>Ideally I want to include it as part of a theme but if I do that it goes into the HEAD section</p>
  
  <p>So can I either..
  -Specify in a theme to insert the link to a client side js resource at the bottom of the page rather than the head
  -Include a resource on an xpage directly so it goes after the auto-generated code</p>
  
  <p>NB: This it needed in order to get an xpages app working with Foundations
  <a href="http://foundation.zurb.com/docs/" rel="nofollow">http://foundation.zurb.com/docs/</a></p>
  
  <p>I need to include the foundations js file after the events have been bound to the fields</p>
  
  <p>Thanks!</p>