Move updateEquationLabels from con-student to general controller
since it is also used in AUTHOR mode.
Fix wrapper for isVariable function.
Combine and simplify structure for equation display in HTML.
Clean up code for equation display.