updated js event