Fix turbolinks breaking javascript