Added request animation frame polyfill.