But obviously, if the manager is just dumb, just go to higher authority and explain that this manager could create lots of problems (I.e. pissing off the lead developer who has most of the software knowledge isn't wise. . especially if he's already happy and doing a great job.)
If the higher authority doesn't give a @!$ well.. send me an e-mail I'm looking for great javascript developers ; )