Check for existance of process, not for a missing window property

Allows us to run in node-webkit
Merge pull request #80 from PaulAvery/patch-1

Allow running within node-webkit