code: function unwrapNode(aNode) {
    var node = aNode;
  
    if (node) {
      // unwrap is not available on older branches (3.5 and 3.6) - Bug 533596
      if ("unwrap" in XPCNativeWrapper) {
        node = XPCNativeWrapper.unwrap(node);
      }
      else if ("wrappedJSObject" in node) {
        node = node.wrappedJSObject;
      }
    }
  
    return node;
  }
docs: Unwraps a node which is wrapped into a XPCNativeWrapper or XrayWrapper
  
  @param {DOMnode} Wrapped DOM node
  @returns {DOMNode} Unwrapped DOM node