Update d3_externs.js

Thanks for the file. My compiler gave me warnings. Here are the changes I had to make to squash all of the warnings.