fix requestAnimationFrame stupidity