during jsdom research, their docs have been updated to suggest this method of defining the window over the previous