Nodes and links referenced by id in d3