US: Brakes worked on train in deadly NJ crash