added requiring of fs to web.js