I would perhaps set a context for this selector, like:

`$('a[title="Show me where I am"]', $('#map'))[0].click();`

Then it would not apply to the whole document.