Update web.js

added file read