@chi, looks like it is NOT possible to create a KM Dictionary directly via script (either JXA or AppleScript).
See:
For more information, see the wiki Searching the Forum for Answers section.