Allowing modules to access 'globals', path to achieving NodeJS API compatibility