Cleanup and simplify assignee form javascript