What determines the U.S. taxation of income?
The general rule of income taxation is that income is taxable where the activity or transaction occurs. All compensation for services performed in the U.S. is subject to U.S. taxes unless an exception applies. For additional information see Publication 17, Your Federal Tax Guide and Publication 519, U.S. Tax Guide for Aliens.