fix "TypeError: Object #<Object> has no method 'global'"

[More info](https://github.com/LearnBoost/engine.io-client/pull/82#issuecomment-12497029)