Create a global variable boolean for each zombie or use instance variables so when the zombies health is gone it toggles the variable and detect when it is dead so it will spawn another.
Develop games in your browser. Powerful, performant & highly capable.