Using D3 build-in functionality to create a tree