add htmlapi/requestAnimationFrame