the presentation and code snippets for hangJS, jsconf 2014