Modified slide.js from branch