replace jQuery parsing with document.createElement