if else shortcut
From http://berzniz.com/post/68001735765/javascript-hacks-for-hipsters?utm_source=javascriptweekly&utm_medium=email