Syntax cleanup: fix missing or unnecessary semicolons

Also explicitly invoke objects constructed with anonymous functions,
e.g., `ClassificationEditor`.
Syntax cleanup: fix use of delete on variables
Syntax cleanup: fix globals created by for loops
Syntax cleanup: fix assignment in conditionals
Syntax cleanup: remove unnecessary implicit eval