Make sure the callback handler is registered before evaluating page script

Hi,
Had some trouble with callbacks not firing, looks like the custom script was being evaluated before the callback was registered.