Added turbolinks back in; refactored all JS functions to bind to page:change event as well as document.ready