Use JSON as app's response, and update index.html accordingly.