JavaScript shim/polyfill that implements requestAnimationFrame API as close as possible for a non-native implementation.