Added requestAnimationFrame polyfill
Added requestAnimFrame optimization support