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