Clif4d is reusable library for 4D rotation controls, using a Clifford torus rather than a sphere.

Original app, using TDL

Three.js sample