Are you sure the 777s on EWR-SJU are the intl lie flat config? Google Flights seems to suggest that, at least on the dates I tried, the 777s are the recliner config.
EDIT: Ah, nevermind -- later dates are in fact lie flat, but some earlier dates are not. Check before booking!