[graphspell][js] dawg: fix bug in select()