The instability of time-dependent jets