Changed the method to read index.html file.