added requestAnimationFrame polyfill for IE