Added rAF polyfill