follows history.js instructions in mithril