working tree in d3.js