Updated web.js with ports