updated index with jquery