JD was just acting out a scene from Return of the Jedi. It's the scene where Luke, Han, and Chewy were being made by Jabba the Hut to walk the plank into the moster in the crater.
JD was on top of the deck storage box with Toodles. He recited Luke's dialogue, "Jabba, this is your last chance. Free us or die."