Include javascript in template

* Don’t require applications to put javascript in application.js, setup
beforehand
* Leads to one more HTTP request on first hit, but subsequent cache
benefits afterwards