Update require dependecies. Use requestAnimationFrame or setInterval.