modified web.js to require http