document.getElementsByTagName("H1")[0].removeAttribute("class");
element.removeAttribute(attributename)