break out the d3 tree into seperate js file