Updated web.js to read external file