 					break
 
 			if is_empty
-				DOM.addClass(@DOM, "cui-template-empty")
+				CUI.DOM.addClass(@DOM, "cui-template-empty")
 
 			return @map[key]
 

				report.push("+ #{k}: found")
				el_map[k] = CUI.jQueryCompat(map_obj[0])

		if misses
			alert("Not all required elements were found for Template:\n\n\"#{@_name}\"\n\n"+report.join("\n"))
		el_map

			# with map we empty each individual map entry
			for key of @map
				DOM.empty(@map[key])
			CUI.DOM.addClass(@DOM, "cui-template-empty")

		return @DOM

