code: function addClass(node, name) {
          if (hasClass(node, name)) {
              return;
          }
          if (node.classList) {
              node.classList.add(name);
          } else {
              node.className += " " + name;
          }
      }
docs: Add element class
  
  @param {node} element
  @param {string} class name