allow multiple nodes to be modified in the d3 tree