Update index.html to use ajax