function getLeafNode(node) {
	  while (node && node.firstChild) {
	    node = node.firstChild;
	  }
	  return node;
	}
Given any node return the first leaf node without children.

@param {DOMElement|DOMTextNode} node
@return {DOMElement|DOMTextNode}