Code I toyed with at the NodeBots event at JSConf 2013