Make onevent handlers more spec-compatible

Support `return false;`, add `event` argument