add ajax to the index file