Make todo example shorter and not rely on the DOM.

Makes the intro example a little less intimidating.