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