reverted the index js file