update to use requestAnimationFrame polyfill