adding changing buttons to sliders using javascript