refactor in d3 datum code