Agregar classname al nodo

element.classList.add("my-class");
Helpful Hawk