Replaced JavaScript string equation evaluation with exp4j for performance reasons.