using index.html to read data