Text corpus calculation in Javascript. Supports Chinese, English.