inserted ajax script in main/index.html