Cut out unnecessary code to fix socket/turbolinks issue