updated index js