smoothed out javascript
Merge pull request #59 from Rleahy22/slider_fix

smoothed out javascript