update web.js
read from index.thml
update web.js to require fs