Fix "Firefox return" bug

The event handler should take an event argument, rather than relying on
the additional event data. Firefox only supported some of these methods