Fix js edit