added shim for requestanimationframe