add tree.js that does the tree layout and adds it to an svg element