Fixed codebase after jsdom update