Edited web.js to require var fs