code: function addClass(el, name) {
          if (!hasClass(el, name)) {
            el.className = el.className ? [el.className, name].join(' ') : name;
          }
      }
docs: addClass: add the css class for the element.