Updated web.js to include var fs = require('fs');