Made changes to read from index.html