Duh! document.createElement, not DOM.createElement.