working d3 tree model