using d3 instead of jquery to get json data