What's the best way to load BVH anim and to apply it dinamically to an existing rigged mesh (using Threejs!)?

My proposed solution does not work if the skeletons of BVH and asset do not match, see Retargeting animation to Mixamo rig.