Updated web.js to correctly read file