Updated web.js
read from index.html instead