changed back to read from index.html