Macros-based JS preloader for Sprockets