Fix pro's code to work with turbolinks.