Effects of Cooling on the Propagation of Magnetized Jets