JavaScript Callbacks added to API
There are two ways to use the callback, one that will simply call the function and pass the data, and another that will do the same, but will also allow for the function to be defined after the call and will gracefully add itself to other onloads if they exist so that they do not break your scripts.
To learn more, check out the API documentation.