JS refactoring
Fixed Slider bug
Merge pull request #3 from Patsy-issa/jsRefactor

JS refactoring