Optimizing criteria expansion/collapsing

For issue https://github.com/MarkUsProject/Markus/issues/916.

Instead of doing AJAX calls, do do client-side JavaScript to expand/collapse the criteria.
Align the elements of an array literal if they span more than one line.<br>Line is too long. [84/80]