The good news is that your landlord has to mitigate the damage. Your landlord cannot sit there and just collect your check. Accordign to Sommer v. Krindel, which is a 1977 New Jersey Supremer Court (highest court in new Jersey) decision, your landlord MUST try to re-let your apartment to someone else. At the same time, you are responsible for the cost of reasonable expenses incurred by your landlord in attempting to re-let the apartment, which is generally not a lot of money and in most cases, landlords in NJ d onot bother to charge this.
Conclusion.
You cannot expect to get out of this without losing a penny. Afterall, you knew about the contract (you signed it) and decided to buy a house. The contract does not prevent you from buying a house, it just asks for your payment until the end of the lease. It can be said that you took a calculated risk in doing what you have done. I have a friend in NJ in exactly the same situation. He was able to get out of it after paying 3 weeks of rent because he (1) informed the landlord as soon as he knew that he was moving out for sure (he bought a house) and (2) the landlord re-let the apartment to someone else. The economy is good now. A lot of people are looking for renting and buying. Woodbridge is a convenient location so I think your chance of getting the apartment re-let is good.