IE fix

And fixed IE HTMLElement
template tag support cross browser
test ad hoc template creation