adding animationFrame polyfill and normalizing the polyfill amd interfaces