Cache the DOM contents of the container just before it is replaced, giving time to the beforeReplace event handler to remove DOM elements that should not be cached.
Bump version