Move onbeforeunload.html to test/data/event/ per @orkel review notes

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Remove errant console.log, per @dcherman review notes

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>