A simple implementation of a JavaScript slider.