Update tfidf.js: Fixing problem when deriving tfidf for the term 'constructor' https://github.com/NaturalNode/natural/issues/119

Fixing problem when deriving tfidf for the term 'constructor' https://github.com/NaturalNode/natural/issues/119