Fixed up the JavaScript with Turbolink.