Clean up d3 tree.js directive