added raf polyfill