Instead of free text, a block can hold transactions. Change an amount and every block from there on is no longer valid.
Based on the blockchain demo by Anders Brownworth (source, MIT licence – see licence). Rebuilt here as a self-contained page; this copy runs entirely in your browser and sends nothing anywhere.