js-based equation solver