Fix server rendering

Refering to window doesn't work when using it with node. Setting it to global works on the server AND the browser, since browserify makes it a reference to window.
Merge pull request #1 from jtangelder/patch-1

Fix server rendering by renaming window to global.