Modified to read from index.html