Clearer document events handlers binding

The trick, below, works, but isn't this simpler?