Modification to load D3 via requireJS.

Needed due to change in D3 on 1/9/2013; fix copied from similar project mpld3:
https://github.com/jakevdp/mpld3/issues/33