Slight refactoring of VocabularyService.js in the front end.