Fixes issue where jsdom globals are deleted when loading as NodeJS module