Updated web.js
read from index.html instead
Part 2, hope my typing is okay