Optimize home_slider.js somewhat