Added support of node.js global object in addition to browser window