Improve requestAnimatoinFrame performance.
Update demo page.