Fix document.ready for turbolinks