NodeJS language detection library using n-gram