Spawning jsdom for better error handling.