animation_frame: fix Proc#animation_frame
interval: move helpers to the proper file
timeout: move helpers to the proper file