var root = document.getElementsByTagName( "html" )[0]; root.setAttribute( "class", "js" ); Skip to main content