Fixed the requestAnimationFrame functionality. I should pass a function reference, not execute the function directly causing an overflow.