display response in index.html