A basic javascript slider.