Firefox compatibility

With this, Firefox stops complaining about "event" not being defined, in the console.
Merge pull request #124 from fabienb4/patch-1

Firefox compatibility