WordFreq offers text corpus calculation in Javascript. Supports Chinese, English.
Looking for a cooler representation? Copy/save the generated list and try wordcloud2.js.