Implementing ui_slider.js. TODO : allow user to specify min value, max value and step.