map div now gets emptied correctly so that images and maps can be loaded into the same div