H(2) cooling of primordial gas triggered by UV irradiation