Cleaned up callbacks.js file