cleaned up manipulation.js