modify the web.js to read the message from the index.html