manipulation.js cleanup