Fix javascript

You don't need to include jquery in the application layout, it's already
included in application.js.

Also, to make javascript work with turbolinks you need it to load after the page:load event