It would need C++ code to handle the new view point as that is part of the render pipeline and further code to define which actor of a possible hundreds to choose from either side's army that would require constant calculation ie: C++ code just to be fast enough so causing more lag, only the toggle between mode can be handled by JS by passing values to C++ code.
Enjoy the Choice