Now using 'requestAnimationFrame'