Documentation/comments of the frontend

There is basically no documentation (either in-line or in separate documents) of the nearly 20,000LOC of JS.

This leads to developers having to go as far as reverse-engineering the application whenever they are not familiar with a certain piece of functionality, which increases the overhead of starting work on new code and slows onboarding new developers.