Work on drawing tree client-side
Add a generic function to walk the tree