Added unprefixed check for cancelAnimationFrame