Fix TypeError in sliders.js with non webkit browsers.