defining 'event' for firefox