updated web.js to include fs