Javascript Get Functionobject Based On Synonym