Update hSlider.js

Bug fixes and some optimizations;
Added click on slide to jump to value.