dataflow for JS