function getNodeName(element) {
    return element ? (element.nodeName || '').toLowerCase() : null;
  }
------------------------------------------------------------------------
jQuery
------------------------------------------------------------------------
add .Collapse to jQuery only if jQuery is present