use newer requestAnimationFrame instead of mozRequestAnimationFrame