Hi I did try that :), The application does still run in the background, its just that the user won't see the application running unless they focus the application again.
x = 3. If the user clicks outside the application, and x = 6, they won't see the update of x = 6 until they focus the application again. There seems to be this jquery example that I could implement into the html5 myself, I guess I will give that a try. I don't have two computers ready to debug with me at the moment.