update request-animation-frame polyfill and add fallback fn