Code for NationJS 2014 Talk - Mastering JavaScript Flow Control