Add function startAnimFrame and startSetTimeout