Javascript Get Functionobject Based On Synonyms