modified to read index.html