First attempt to support `attachEvent`
wip