clean up old code from bounce.js file