Modified web.js to use fs.readFileSync()