Code from generators flashtalk at JSChannel Meetup - 23 Aug 2014