Updated web.js with fileread