added web.js
Changed file reading