Updated web.js to read from a file