put the on callback into app.js