natural language processing algorithm templates for JavaScript