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.
Merge pull request #1 from Joao-S-Martins/patch-1

Update d3_externs.js