Make piping from js to js work