to reiterate what i've stated throughout this thread: passing up US workers in favor of hiring foreigners should incur heavy penalties. There is no shortage of American workers. If a foreigner wants to work for an American company, they should get a greencard and work in America.
If a company has a foreign office, of course it makes sense to hire people in that country, but that wasn't stipulated in the comment I replied to. Many companies are NOT based in foreign lands and still hire foreigners remotely, passing up Americans in the process, because those foreigners are dirt cheap by comparison. This should not be allowed.