fixed turbolinks bug with adding javascript

resolves #47