reqAnimFrame now part of class