JavaScript Preloader for Sprockets