added json output to index.html