change how D3 template is rendered