Components, patterns and sample code for mithril (lhorie/mithril.js)