fix javascript/turbolinks initialization errors