Firefox compatibility

With this, Firefox stops complaining about "event" not being defined, in the console.