 Seth Green (qv) claims that the sequence at the end showing him  dancing around Dr. Evils lair was not scripted; he said he was  fooling around between takes and his hijinks were caught on film and  the director decided to include it in the movie.