event js update