As a former JavaScript developer you need a moderately sized team of 4-7 people to do one person’s job because almost nobody knows what they are doing. Everyone is scared to death of the frontend compile target, the DOM, and they have no idea how to organize their thoughts or write original software. Fortunately there are large frameworks and billions of NPM dependencies to solve for that.
Really though, if they knew what they were doing one, maybe two, developer(s) are more than enough. I can assert that because I have proven it true at multiple employers during my 15 year career doing that work.
Consider the economics of this. A decent sized team of developers will cost their employer well over a million dollars per year irrespective of what they accomplish. Those one or two better trained developers can do the same work one time at a cost of about 20k-100k and then provide maintenance and bug fixes there after while moving on to different work for their employer.
In this respect the shortage of talent results in a choice for employers: hold out hope for a rare gem that knows what they are doing or set the baseline so very very low and just hire more people. The later is often the lower risk option when desired talent is tough to identify or is too expensive to produce internally.