A Javascript component that creates a slider