`powerSwitch.removeAttribute('data-seeking');` can be `delete powerSwitch.dataset.seeking`, but never mind.