The fisherman uses trickery to get the jinn to return to his bottle ("I'll only believe it [the jinn's ability to fit into the bottle] when I see it with my own eyes"-ah, the power of reverse psychology), and throws the jinn in his bottle back out to sea.
Errol Le Cain
According to tradition, the jinn's confinement in said bottle was because of Solomon. As some of the jinn remained true to Solomon and Allah, others became evil and rebellious. To punish the evil ones, Solomon used his power to trap them in various flasks/bottles. Thus when a person discovers a jinn, they are not automatically guaranteed a servant who will grant all their wishes-they may have to cleverly fight for their lives.
Interestingly, though folklore all around the world dapples with the idea of marriage between natural and supernatural beings, the conclusion of virtually all Western stories of such unions are that they are doomed to failure. Yet marriages between female jinn who can take the forms of swans or creatures of the sea have a higher likelihood of success. In fact, a Syrian legal treatise from the fourteenth century condemns such marriages, but the fact that it is a law reveals that they were thought possible by the people at the time.
The Islamic Solomon also has power over animals and nature, and like the Biblical Solomon, is the possessor of great wisdom. Marina Warner even calls him the "chief model in fantasy for the white wizard," comparing him to Gandalf and Dumbledore.
The above illustrations of jinn are a huge contrast to the bubbly, comic relief genie of Disney's Aladdin, once again following the trend of...just about everything in history (fairies, vampires, and pirates get a lot of discussion on this blog)...the dangerous and mysterious has become controlled, cute, and funny.