edit js events