Update js/rangeSlider.js

removed some unused code