CLICK HERE FOR KEY TO SOURCES
from the mid 16th century - in the singular, originally denoted a knickknack or small article
The above senses date from the late 19th century.
Jim-jams in the sense of pyjamas is from the early 20th century.
From: The Hokey Pokey Joke Book
Published by Robert M. De Witt, 1870
Not on the Map.