Added require fs to web.js