Updated file reading web.js