Changed loading of JSON data from own implementation to d3's implementation