js cleanup, turbolinks compatibility