added request-animation-frame.js and applied requestAnimationFrame on animations