Sample code from my Bulletproof JavaScript talk