Template for d3 force layout with id remapping.