move js into head to avoid duplicate confrims when using turbolinks