moved polyfill into own file

This allows requiring `raf/polyfill` which is far less in KB

`raf` is 10kb. `raf/polyfill` is <1kb