Updated web.js
removed newline from index.html and added code to web.js to read from index.html