cleaned up the Slider.js file a little more