Sir,
In a simple way china is helping US keeping inflation in check, in return it earns $$$. Also chinese have been buying US bonds in huge quantities, thus financing the US fed. Acc to this
link japan has something in the region of 680 billion US$ in US bonds, while china has 243 billion US$.