updated web.js
read from file
add require fs
encode to utf8