Fixed Issue #648,overwrite query should disappear

overwrite div is removed after user clicks on the overwrite button.
Currently the div are dynamically generated without assigning any ids.
So given a scenario in which user is uploading 2 files one by one and then there will be two overwrite divs now user doesn't overwrite the first upload and overwrites the second upload it gets difficult to track. which div to be deleted. With the approach I have taken for finding out the parent at its root level and then removing the message works fine for multiple overwrite messages. Whiever overwrite button user clicks will be closed.
 Another approach might be to find the siblings and then trigger the close button's click event. But this will be again adding more lines of code using "parent.siblings.find" and kind of doing the same work.
<div id="file-upload-results">
	<div class="alert alert-danger">
		<button type="button" class="close" data-dismiss="alert">×</button>
		<div>
			<p>File exists. 
			<a class="btn btn-danger" href="#">Overwrite</a>
			</p>
		</div>
	</div>
	<div class="alert alert-danger">
		<button type="button" class="close" data-dismiss="alert">×</button>
		<div>
			<p>File exists. 
			<a class="btn btn-danger" href="#">Overwrite</a>
			</p>
		</div>
	</div>
</div>
Please advice what kind of fix you are looking at.