fix webkit requestanimationframe