Update hSlider.js

Refactored code to support multiple sliders.