Use javascript_include_tag helper to include javascript

Use Rails helper to include javascript. Assets pipeline divides manifest into separate files if assets.debug is true
Merge pull request #2215 from tank-bohr/master

Include JS in layout with rails helper