[graphspell][js] update for dawg: export as JSON