Add a polyfill for issues with ios 5+ and requestAnimationFrame