HTML5 Canvas and animateRequestFrame in action