[graphspell][js] spellchecker: fix JS syntax