These two pages demonstrate different methods of running code in the background. All the background code does is increment this number, once per second:
---
This one does the background work using plain old setInterval().
Try Background Test 2 instead.