code: function child_by_name(parent, name) {
    var children = parent.children || [];
    for (var i = 0; i < children.length; i++) {
      if (children[i].name == name) return children[i];
    }
    return null;
  }
docs: Internal: Find the first node from the parent node's children that has the given name.  parent - An Array of node objects. name   - String node name.  Returns a node Object or null.