Added code to read from index.html