improve tree.js formatting
add findLeafNames spec