code: function(tree, id) {
      if (tree.id == id)
        return false;
      var ch = tree.children;
      if (ch && ch.length > 0) {
        for ( var i = 0; i < ch.length; i++) {
          if (ch[i].id == id)
            return tree;
          else {
            var ans = this.getParent(ch[i], id);
            if (ans)
              return ans;
          }
        }
      }
      return false;
    }
docs: /*
  Method: getParent
  
  Returns the parent node of the node having _id_ as id.
  
  Parameters:
  
  tree - (object) A JSON tree object. See also <Loader.loadJSON>.
  id - (string) The _id_ of the child node whose parent will be returned.
  
  Returns:
  
  A tree JSON node if any, or false otherwise.