Modified web.js to require 'fs'.