added request/cancel animation frame method.
update