Added D3 code to style individual nodes.