Make sure document.body.dispatchEvent etc works

Fixes #97