Annotator: clean up javascript for semanticTerm collection.