Inject global d3 var

It is nice if one can move the global variable for a library to another namespace, and then delete the global. For instance, with jQuery I can move $ to MyAppNamespace.$, then delete window.$. jQuery will continue to work after this. d3 does not continue to work if I attempt the same thing. This is because the d3 global variable is declared within the main function body as a global, and is not injected. With the simple changes here I am free to reassign the global d3 variable into my own namespace.