Update requestanimationframe