Modified web.js to read file