update progress bar every 10 seconds. On iOS JS does not run in background. So when you come back to the browser the JS should update to the current state within 10 senconds.