web.js clean-up