Added requestAnimationFrame support to framework