Removing a Dead (Knocked Out) Character from Followers on Map

Hey, guys. I was wondering if anyone knew how to make it so that when a character is knocked out or at 0 HP, they don't show up as followers on the map.

I found an old thread about doing it in Ruby, but I can't seem to find the JS equivalent or RMMV plugin.

I have an event that applies knockout to 2 party members and the third has to run off to save them. But the dead characters are still leading the group on the map, so its kind of weird.

Thanks!
Why not just remove them from the party or disable the followers?
If they are specific characters then just apply a Remove Party member event after the battle for the two dead members.
Code:
Game_Followers.prototype.initialize = function() {
    this._visible = $dataSystem.optFollowers;
    this._gathering = false;
    this._data = [];
    for (var i = 1; i < $gameParty.maxBattleMembers(); i++) {
        this._data.push(new Game_Follower(i));
    }
};

Code:
    for (var i = 1; i < $gameParty.maxBattleMembers(); i++) {
        this._data.push(new Game_Follower(i));
    }

Code:
  this._data = $gameParty.members().filter( function(member) {return member.isAlive()} ).map( function(actor) {return new Game_Follower(actor.actorId)})

I *think*.
I'm not familiar with map and filter blocks as I'm with their Ruby counterparts.
but that's how I'd do it in Ruby: from Party select alive members, return one Follower per resulting ID.
the original was: from 1 to max battle members, repeat create one Follower per database ID.

Original thread: https://forums.rpgmakerweb.com/threads/removing-a-dead-knocked-out-character-from-followers-on-map.106583/