JavaScript version of the decision support system, with real-time feedback.