Update mag-ui-event.js