web.js fixed the syntax error in order to read from index.html