cleanup jsdom and DOM stuff