changes to web.js

read from index.html
web.js

error fix
error file read

error file read
buf error

buf error
err

err