[graphspell][js] dawg: bug fixing + code clarification