updated web.js to require needed dependency fs