Added function to read from index.html
Updated index.html