public JavaScriptObject getJsObject() {
		JavaScriptObject jsObj = JsoHelper.createObject();
		if (tag != null)
			JsoHelper.setAttribute(jsObj, "tag", tag);
		if (id != null)
			JsoHelper.setAttribute(jsObj, "id", id);
		if (cls != null)
			JsoHelper.setAttribute(jsObj, "cls", cls);
		if (style != null)
			JsoHelper.setAttribute(jsObj, "style", style);
		if (html != null)
			JsoHelper.setAttribute(jsObj, "html", html);

		for (@SuppressWarnings("rawtypes")
		Iterator iterator = otherConfig.keySet().iterator(); iterator.hasNext();) {
			String attribute = (String) iterator.next();
			String value = (String) otherConfig.get(attribute);
			JsoHelper.setAttribute(jsObj, attribute, value);
		}

		if (children != null) {
			JavaScriptObject[] childrenJS = new JavaScriptObject[children
					.size()];
			int i = 0;
			for (@SuppressWarnings("rawtypes")
			Iterator it = children.iterator(); it.hasNext(); i++) {
				DomConfig config = (DomConfig) it.next();
				childrenJS[i] = config.getJsObject();
			}
			JsoHelper.setAttribute(jsObj, "children", childrenJS);
		}
		return jsObj;
	}