pattern for slider.js tested