Optimized js in layouts/application