writing out the slider js