update the d3.js tree