element.classList.remove(name)
also:
element.classList.toggle(name)