Grails - Adding JavaScript to bottom of page

In Grails using the templating (Sitemesh) if you were to include per-page JavaScript resources then it shows up much earlier in the layout content as part of the Here is an example illustrating the problem: SamplePage.gsp [sourcecode language=“html”] <!DOCTYPE html> Custom Page … Some this page content [/sourcecode] and the layout page (layoutPage.gsp) [sourcecode language=“html”] <!DOCTYPE html> … Some template (header) content