require('d3') on serverside does not initialize global object's window or document properties.

```global``` object does not have reference to ```window``` and ```document``` before ```require('/globals')``` so the forEach statements are pointless and harmful because global does not yet have a pointer to window and document Removing them would fix the issue that global object does not have window and document properties.