When you store things in memory you're running it through "JSON.stringify" behind the scenes. JSON does not preserve full classes- it's objects are basically just dictionaries. The javascript json engine handles this by simply removing anything that can't be serialized, so you get the really dumb dictionaries as a result. When they are later parsed there is no class data associated with it, just the raw data, so it's on you to recreate the classes yourself.