fake document.documentElement and removeEventListener