Added local copy of d3.js. Plotting of relative phase works, but might still need some tweaking.