inserted ajax script in main/index.html

inserted ajax script in main/index.html