element.classList is of DOMTokenList type.
Is there a method to clear this list?
Here's another way to do it:
element.setAttribute("class", "")