Create slider.js

First version