Fix 2 issue: 1, Demo not work; 2, Should stop the timer loop when comes back to the frond
Merge pull request #1 from zolibra/master

Thanks for your pull request.
Sorry, I forgot to completed the demo.