Updated web.js with readfile