add rAF polyfill