AMD module: requestAnimationFrame and cancelAnimationFrame polyfill