updated fileread to web.js