operations research and optimization algorithm templates for JavaScript