Document requestAnimFrame and cancelAnimFrame