compare the type of window in order to avoid nodejs conflicts with test
Merge pull request #144 from colkito/fix/mocha-setup-conflicts

compare the type of window in order to avoid nodejs conflicts with test