web.js cleanup