Javascript pipeline split