You can add the call-back code at the end of the animation by first dragging the playhead(marked in green as hown in screenshot) to the end of animation in the Timeline Panel in Edge Animate, and then click the "Insert Trigger"(marked in red as hown in screenshot) button to add the code there.