Don't leak globals in node.js

Especially the window global, which causes some other libraries to fail thinking it is running in the browser.