Kings snap losing streak in New Jersey