Manipulate and traverse tree-like structures in javascript.