JavaScript library for text analysis