Add requestAnimFrame into engine