Expose global object as global in JavaScript