Updated the index page js