[Last lines; Jasmine walks over to Aladdin. They hold hands, but both look sad]
Jasmine, I'm sorry I lied to you about being a prince.
I know why you did.
Well, I guess this is goodbye. [Genie pokes his head around the corner shocked at what he is hearing]
Oh, that stupid law. This isn't fair. I love you.
[wipes away a tear]
Al, no problem. You still got one wish left. Just say the word and you're a prince again.
But what about your freedom?
Hey, it's only an eternity of servitude. This is love. [he leans down next to her] Al, you're not gonna find another girl like her in a million years. Believe me, I know. I've looked.
Jasmine, I do love you. But I gotta stop pretending to be something I'm not.
I understand.
[They take one final look into each other's eyes, then Aladdin turns to the Genie]
Genie, I wish for your freedom.
One prince pedigree coming up. I... What?
[A transformation scene ensues, in which the shackles fall off Genie's wrists and the lamp falls uselessly to the ground. Genie picks it up and looks at it] [he can't believe it; laughing]
I'm free. I'm free. [he hands the lamp to Aladdin] Quick, quick, wish for something outrageous. Say, "I want the Nile." Wish for the Nile. Try that.
Uh, I wish for the Nile.
No way. [laughs hysterically. He bounces around the balcony like a pinball] Oh, does that feel good! I'm free. I'm free at last. I'm hittin’ the road. I'm off to see the world. I'm...
[He is packing a suitcase, but looks down and sees Aladdin looking very sad]
Genie, I'm... I'm gonna miss you.
[smiling, with a tear in his eye]
Me too, Al. No matter what anybody says, you'll always be a prince to me.
[They hug. The Sultan steps forward]
That's right. You've certainly proven your worth as far as I'm concerned. It's that law that's the problem.
Father?
Well, am I sultan or am I sultan? From this day forth, The Princess shall marry whoever she deems worthy.
[she smiles widely and runs into Aladdin's arms]
Him. I choose... I choose you, Aladdin.
[They are about to kiss when giant blue hands pull everybody together. Genie is decked out in a Hawaiian shirt with golf clubs and a Goofy hat]
All of you, come over here. Big group hug. Do you mind if I kiss the monkey? [he kisses Abu] Ooh, hairball. Well, I can't do any more damage around this popsicle stand. [takes off] I'm outta here! Bye-bye, you two crazy lovebirds! Hey, Rugman, Ciao, I'm history. No, I'm mythology. I don't care what I am! I'm free-hee!
[The Genie flies up into the blue sky leaving a trail of sparkles behind him. They cut (a jump cut to make matters worse) to fireworks exploding over a nightscape. We tilt down and see Aladdin and Jasmine flying on Carpet] [singing]
A whole new world.
[with off-camera chorus]
For you and me!
A whole new world!
[They fly off into the moonlight, and after they have disappeared, the moon turns and reveals the Genie's laughing face. Suddenly the film is grabbed "off the projector", the Genie lifts it up and looks at the audience]
Made you look.
[Drops the film back to normal, in a normal moon. During the credits, "Friend Like Me" song is instrumental version]


