Added the first demo. Realized that what I thought was a bug was really just the way Javascript handles objects.