A push-relabel network flow solver in JavaScript