Stu, Welcome to FlyerTalk . . . . if you ever come back . . . .
Aeroplanes, along with trains, and buses, and cars - - BREAK! They just do!
If your flight would have been out of Atlanta, they would likely have had many planes to swap out for. Out of PUJ, there really isn't much they can do! Entertainment and internet systems won't get fixed at a distant, tiny outstation. They could have canceled the flight and flown it back to the USA empty, but, that would be ridiculous. They are running an airline - not a movie theater. Their remedy in these situation is usually to dole out lotsa SkyMiles, but, if you don't like whatever offer they make, you can always ask for more.
I'm curious to know what you think they should've done?