main.js: fix paths

Event.js was being referred to with the extension, which was incorrect.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Update Event.js module

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>