docs(cockpit): add/improve some jsdoc comment

Closes CAM-1727
Merge branch 'master' of github.com:camunda/camunda-bpm-platform