javascript transductions