Updated to read from index.html