Replacing non standard JavaScript "Map()" with a simple list inside an object.