updated index.html ajax