Continue the HTML5 hotness by using <template> in the dialog instead of constructing DOM manually