Comit some change for how to using a callback in javascript