Some optimizations, formatting to manage_assessments.js