ngram ajax fix