Executing client-side code as part of the callback - added suggestions and example in the documentation