Like setInterval() but with requestAnimationFrame()