Spectral element methods for transient viscoelastic flow problems