Updated web.js to fix require bug