html updates while dragging the input slider