Removing trailing whitespace from file.

Issue: GCP-9122
Reviewer: none
Removing unused and unnecessary variables from variableSelectionModal, and correcting the definition of variables in the displayOntologyTree method.

Issue: GCP-9122
Reviewer: Rebecca B