Common JavaScript techniques that I wish someone had taught me.