Added pipe support to js