Relationship between the liquid-liquid phase transition and dynamic behaviour in the Jagla model