It is not possible to transfer a valid U.S. visa from an old passport to a new one. You need to carry both your passports while travelling in this case. If you want to have a visa on your new passport, you would have to go through the entire visa application process again.