Move rAF polyfill to helpers.