update commonevent.js