Updated web.js with read from file