Update main.js

added comma before register event identifier