read from index.html rather than just sending a string