Switched demos to use requestAnimationFrame