pipeline javascript problems