Jam-Packed

What does the expression “jam-packed” mean?

Definition: extremely crowded

Example: I tried to buy Britney’s Christmas present, but the store was jam-packed, and the line was an hour long.