stopBackgroundTask using an NSTimer to allow long-running javascript a little extra time to complete