Replace setTimeout with requestAnimationFrame.
Merge pull request #1 from trusktr/patch-1

Replace setTimeout with requestAnimationFrame.