How Do Mortgage Surplus Funds Work in NJ?

In New Jersey, if a foreclosed property sells at a sheriff’s sale for more than the debt owed on it,