Javascript naive transducers.