FIx turbolinks issues by moving JS load into head