changed web.js to read from a file and added index.html