Fixed Issue #648,overwrite query should disappear

overwrite div is removed after user clicks on the overwrite button.
Usually we use the environment of the JavaScript environment (closures) to keep track of such things, rather than crawling around the DOM to find things. It makes the code a lot clearer.  Where is the element created that you want to remove?  Can you capture a reference to it?