Fixed fs error in web.js