Adding 'event' to functions so it work in Firefox

Without the 'event' in the function call it doesn't work in Firefox