added required fs to web.js