Fix js events