Allow the callback argument to be passed to the API for ajax calls and act upon it