Fix for JSDOM update.