code: function addClass ( el, className ) {
          if ( el.classList ) {
              el.classList.add(className);
          } else {
              el.className += ' ' + className;
          }
      }
docs: http://youmightnotneedjquery.com/#add_class