Small fix to work with latest jsdom

Replaces calls to jsdom.createWindow() with jsdom.parentWindow