Rewrite to use the pure JS zookeeper client library