updated tfidf.js to generate 300 words with the largest tfidf