D3 ajax call broken but backend sends correct information