@3rd-Eden but we check for the existence of `global.document` so if we run it on node it will not add any listener to node's global.