Changed D3 javascript

Added labelling to nodes