Modified the jQuery ready function so the logic inside is always fired on page load, even when using Turbolinks.