updated web.js to use readFileSync
fixed download of file