Loading and converting the data in D3