JavaScript Model for the ECG quick test