Added export to global object in non-CommonJS.