modified web.js for local test of dev env