On the trajectory method for reconstruction of differential equations from time series