Added requestAnimationFrame implementation, modified text implementation to use toString