add requestAnimationFrame for all browsers