JavaScript version of EPANET