Make sure document.body.dispatchEvent etc works

Fixes #97
Merge pull request #100 from arv/document-body-dispatch-event

Make sure document.body.dispatchEvent etc works