first use of requestanimationframe from w3 documentation