requestAnimationFrame support

Fixing in all files