Updated web.js for file reading