code: function(el, c) { // where modern browsers fail, use classList
      if (el.classList) {
        el.classList.add(c);
      } else {
        el.className += ' ' + c;
        el.offsetWidth;
      }
    }
docs: Native Javascript for Bootstrap 3 | Internal Utility Functions by dnp_theme