requestAnimationFrame in JavaScript ?

There was a time when I thought animations in JavaScript were simple.