Trying window.requestAnimationFrame