Created the chat-plugins.js file as per Joim's idea, and moved the levenshtein functions to there.
The lay-out of chat-plugins.js is very basic and how it seems best to me.
The variable is being assigned in app.js, which seems our best bet, since there are multiple commands.js files, and if really needed, can be used elsewhere.
Also, the hotpatch command had to be edited to reload chat-plugins.js next to command-parser.js.