New version of jQuery.tmpl.
Temp fix of the disappearing parent bug.