fixes #555

Ontology terms are now validated when the mouse is moved out of the text
window.  To do this I added a validation function that is called from
javascript using ajax.