Updated web.js
Read from index.html
Fixed require