code: function getMap(map, theme, name){
      if (!hasOwnProperty.call(map, theme))
        map[theme] = {};
  
      var themeMap = map[theme];
  
      if (!hasOwnProperty.call(themeMap, name))
      {
        var list = [];
        list.sources = {};
        list.nested = [];
        list.name = name;
        list.postfix = '';
        themeMap[name] = list;
  
        var baseName = name.replace(/-anim$/, '');
        if (baseName != name)
        {
          list.postfix = '-anim';
          list.name = baseName;
          getMap(map, theme, baseName).nested.push(name);
        }
      }
  
      return themeMap[name];
    }
docs: Collect names