Separated the parts of the JavaScript Slider to coincide with the ActionScript version and to better manage the component by separating its functions.