Fake requestAnimationFrame for sensible unit testing