Add proper key-value pairs in json response to index.html