Trying to fix event handlers in firefox