var w3 = !!(document.getElementById && document.createElement);
The article contains clever little blips like that and also some more design-patternsy stuff to help you constrain scope and write more efficient code. A good read.