nb.js cleanup