JavaScript Calculator implementing the Ventilator-Assocoated Condition algorithm