Was that DUI stop legal?

The police pull you over one rainy night in New Jersey. You can tell that the officer is on edge as soon as they get to the window. They quickly ask you to step out of the car and do some field sobriety tests because they think that you are intoxicated.You get out and...