Updated slider.js and added event listener example