web.js uodated to read from file