Finishing up code for the D3 demo page.