try jquery ajax instead of d3