Restores original template.
restoreTemplate()
Description
This is internal function that is called when original template needs to be restored to the original places. It is only triggered if template was part of the DOM and needs to be returned back. If there was a template, it will be saved into
w2popup._template.