made it so that it read from index.html