update event JS