Solar log gf values in the infrared J and H bands