added the old web.js code for reading file