EHO-206 Selected assignment for edit stays highlighted in list of assignments.
Put javascript functions in its own object to prevent global scope cluttering.