Fix undefined reference to window (nodejs)

The reference to window throws a reference error when executed in node.
This is not really cool if one wants to render something server side.
This simple commit should make it work.
Merge pull request #29 from gdeb/master

Fix undefined reference to window (nodejs).