modified index js