What does ‘john’ mean?

( n ) Bathroom. The john really smells.
( n ) A toilet or the toilet. When he flushed the john, he was surprised to see his cap disappearing down the hole.