Bugfix #58 - ReferenceError in firefox

Fixes #58 for Firefox as it doesn't have a global ``event`` object.