code: function getDepth(node) {
    var level = 1; // level: 0
    while (node.parent) {
      level += 1;
      node = node.parent;
    }
    return level;
  }
docs: [getDepth description]
  @param  {Object} node - [description]
  @return {Number}      - [description]