refactor code out of d3 csv function