edit htmlapi/requestAnimationFrame