Added document to the elements we consider targets of events (you can trigger an event on document that is handled by an event handler registered on document)