modifying web.js to read file