JS: requestAnimationFram polyfill