javascript slider based on reveal.js and slides.js