Slight jsdom fix

using parentWindow instead of createWindow solved the missing function
error.