Pipes to/from JS more or less works now