New: Wrap DOM property event handlers

Find and wrap things like div.onclick into a function
that catches and reports errors to Mocha.