Explicitly check for Turbolinks and use document.ready() if it's not present