Now updates when dragging the slider.

I have next to no javascript or front-end skills in general. But this seems to work at least in my recent versions of Firefox and Chrome. Dragging the slider and keying back and forth now causes updates. This is nice for flipping back and forth between frames, for example.

I'm starting my first PRs small. Thanks for indulging.