Updated to read index.html correctly