title: Grails application.js not executing
body: <p>I have a Grails (2.3.6) app, and have included the <code>asset-pipeline</code> plugin as a dependency. In my <code>Config.groovy</code>:</p>
  
  <pre><code>plugins {
      // Lots of other stuff
  
      compile ":asset-pipeline:1.8.7"
  }
  </code></pre>
  
  <p>In <code>myapp/web-app/js/application.js</code> (generated for me by Grails), I have only the following single line of code:</p>
  
  <pre><code>alert("Hello!");
  </code></pre>
  
  <p>Then in my <code>grails-app/views/index.gsp</code>:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;asset:javascript src="application.js" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          ...
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I do a <code>grails run-app</code>, I don't see my JS <code>alert(...)</code> statement fire. Have I positioned my <code>application.js</code> file incorrectly? Have I configured the <code>asset-pipeline</code> plugin incorrectly? Anything else I'm doing wrong? I just want to see my alert box!</p>
  
  <p>Additionally, following the "<em>put CSS at the top, and JS at the bottom</em>" convention, I was wondering if anyone could chime in as to how I could reposition the <code>application.js</code> to appear at the bottom of the <code>&lt;body/&gt;</code> tag. My understanding was that <code>asset-pipeline</code> assets only work inside of <code>&lt;head/&gt;</code>.</p>