console.log('familyTree sets node');
var textElement = element.getText ? element : null,
nodeElement = element.getText ? element.parent() : element, // TODO: better type detection
console.log('familyTree sets node');
var textElement = element.getText ? element : null,
nodeElement = element.getText ? element.parent() : element, // TODO: better type detection