added missing closures to web.js