The Eastern Path to Modernity

The tech gap between China and the West is closing fast. But why did the land of paper and gunpowder ever fall behind?