Add support for cancelAnimationFrame

Necessary for Construct 2 support.