updated web.js
from index.html
readFileSync usage