Agregar classname al nodo
element.classList.add("my-class");
Helpful Hawk
element.classList.add("my-class");