That is one possibility but our manufacturing and assembly went where the labor is cheapest. Should the US have taxed or regulated US companies making their products abroad?
There is only one solution that the problem you raised, and that is for a nation of parents to inculcate in their children a love for God and country, above their own selfishness. If there had been such a people, those people who have brought that value into their corporate decisions.
As it is, the way America is headed is a consequence of the people's unshakeable belief, in its citizenry, that selfishness is the core guiding principle. Let's see where that takes the United States in 50 years time. As it is, there is nothing to stop the flow of cash and technology to China. It's like a drip feed that you don't notice, but suddenly, 20 years later, you realise the once impoverished nation across the Pacific has more money the you. Keep this going for 50 years more. Think through the ramifications of current trends being the same for 50 years.
Remember, if you can thousands of years of world history, the lesson is that once-rich nations can become basketcases given enough time, and stupidity in the overall decision making of its leaders.