Animating with Request Animation Frame