edited web.js to read text from index.html