Using .nodeType now instead of HTMLElement ? Element to support IE9.
Using existing fallback element if existing. Closes #54.