attempt to fake DOM using jsdom
fix global window