This obviously got inherited, but for future reference

    tabIds.forEach(function(id) { 
      var tab = this.tabs[id];
    }, this);

makes things a bit nicer