compose.js cleanup