added code to read string from index.html and print to screen