Adding a click listener to slider.js