Defer callback registering until after the DOM has loaded.

This is required to enable the callback for AJAX functions in plugins.