Fix for jsdom instances in nodejs enviroment.