Update application js for jQuery UI Slider

It will also consider the steps while calculating the segments.