Loading d3 and setting it to window