To counter a perceived communist threat from the Soviet Union , the US quickly set to work reconstructing the economy by transforming Japan 's institutions and devising a new pacifist constitution .
Japan 's institutions and constitution desperately needed to be reconstructed .