code: function hasClass(node, name) {
          return node.classList ? node.classList.contains(name) : new RegExp("(^| )" + name + "( |$)", "gi").test(node.className);
      }
docs: Has class
  
  @param {node} element
  @param {string} class name