Locally recoverable J-affine variety codes