Adding 'event' to functions so it work in Firefox

Without the 'event' in the function call it doesn't work in Firefox
Merge pull request #23 from tmconnect/patch-1

Adding 'event' to functions so it work in Firefox