playing around with clojure style transducers in js