Make it work with jsdom.