Fix turbolinks

http://guides.rubyonrails.org/working_with_javascript_in_rails.html#turbolinks