Remove some duplicate code in the demo
Remove some duplicate code in the demo

MarcelGerber/tern,othree/tern,emallson/tern,messfairy/tern,jgiles/tern,neoclide/tern,nmalaguti/tern,emacsmirror/tern,cloud9ide/tern,cdosborn/tern,jeffslofish/tern,cdosborn/tern,cloud9ide/tern,rustemferreira/tern,eranif/tern,angelozerr/tern,othree/tern,inafact/tern,ternjs/tern,rustemferreira/tern,albertinad/tern,Icenium/tern,anandthakker/tern,purcell/tern,adrianton3/tern,anandthakker/tern,ypresto/tern,mcanthony/tern,sqs/tern,fileability/tern,messfairy/tern,mcanthony/tern,OliverJAsh/tern,adrianton3/tern,ryanstewart/tern,othree/tern,dorellang/tern,talyian/tern,marijnh/tern,aklt/tern,neoclide/tern,albertinad/tern,jgiles/tern,dorellang/tern,hanshuebner/tern,Icenium/tern,MarcelGerber/tern,emallson/tern,marijnh/tern,rustemferreira/tern,fileability/tern,emallson/tern,kylehg/tern,neoclide/tern,fileability/tern,albertinad/tern,sergeche/tern,dorellang/tern,ternjs/tern,talyian/tern,pombredanne/tern,emacsmirror/tern,magnars/tern,messfairy/tern,warpr/tern,angelozerr/tern,adrianton3/tern,jason0x43/tern,Icenium/tern,eranif/tern,emacsmirror/tern,talyian/tern,ternjs/tern,marijnh/tern,jgiles/tern,cdosborn/tern,vegansk/tern,kentdoppelganger/tern,MarcelGerber/tern,eranif/tern,anandthakker/tern,forivall/tern,mcanthony/tern