Changed animation to start with reqAnimFrame.