Printing result to index.html