Separate infinite scroll into its own class.
Switch to more minimal hash change implementation
Fix loading of image modal on turbolinks change.
Cleanup styles when javascript is still loading.