moves the disable function to the slider.js instead inside the test.html