Updating JS events