Logic Production System (LPS) runtime implementation in JS for building browser or Node.js-based AI applications