Set_Timeout replaced with RequestAnimationFrame