refactor(polyfill) add window, document