I realize it's convention to load JS at the end of the page. The Rails asset pipeline assumes 100% responsibility for js code. Therefore, if you follow this convention, you'll have js code for various pages that should be loaded before the page is done loading. Resultingly, I'd suggest moving the Javascript include tag to the top fo the page by the css include tag.

(this is in HAML, but still helpful) EG, https://github.com/westonplatter/slingshot/blob/master/app/views/layouts/application.html.haml#L6.