I passed the code through Google closure compiler.
Now it should work on your browser, assuming that it supports HTML5 canvas API.
9 karma · joined September 30, 2018
Now it should work on your browser, assuming that it supports HTML5 canvas API.
Note that Quaternions didn't fix the issue by themselves. I had to change the interpretation of cursor movements to use axis-angle rotation based orientation.
The fix could be deployed with or without Quaternions.