Update main.js

Fixed lacking 'event' parameter in line 26. Chrome tolerated this omission, FFox did not