Using older jsdom to solve syntax error

jsdom.createWindow deprecated