foo.bar = {
  mehr: 0,
  noch_mehr: 'fasel',

  dideldum: function() {
// Zusätzliche Funktionen im Bereich "bar" ...
  }
};
 
foo.baz = {
  anderes: {hue: 'hott', hoppel: 'didoppel'},

  tralala: function() {
// Zusätzliche Funktionen im Bereich "baz" ...
  }
};
