Adaptation of three.js trackball control to commonjs module