requestAnimationFrame is not your [logic's] friend | Chandler Prall
I think requestAnimationFrame is a great addition to Javascript, but these two points need some emphasizing:
Use requestAnimationFrame for animations / screen updates
Do not use it for anything else (especially game logic!)