reqAnimFrame and performance improvs