Make sure the callback handler is registered before evaluating page script.
Merge pull request #14 from jlabusch/callback-race-condition

Make sure the callback handler is registered before evaluating page script