refactor location code, attempts to make more cross origin friendly, right-click hint, etc.