update web.js
add readFileSync and buffer toString method
fix typo