update js events