modified web.js to deliver static content and index.html if at the root domain