clean up callbacks.js