index js edit