code: function() {
  			var d = doc,
  				de = d.documentElement,
  				heads = d[STR_GET_BY_TAG]("head"),
  				hd = heads[0];
  			if (! hd ) {
  				hd = d[STR_CREATE_ELEMENT]('head');
  				de.insertBefore(hd, de.firstChild);
  			}
  			// replace head so it runs fast next time.
  			head = function(){
  				return hd;
  			}
  			return hd;
  		}
docs: Gets the window (even if there is none)