make ajax call in index.html