update
rewrite polyfill for requestAnimationFrame