House-keeping work for manage_assessments.js

Alignments
Retab
Trim trailing spaces
Other optimizations