Define the new page callback for interrupting a long-running JavaScript

Issue: https://github.com/ariya/phantomjs/issues/11198