added require fs to web.js