Learning how to use d3 for tree visualization