Change .createWindow() to .parentWindow as required by recent versions of jsdom