copied entire page from d3