updates to D3 code in index.html