node-fs instead of fs library in web.js