MYLOC-38 - Preferred Location module

there's an inconsistent use of implied globals. Here, document is implied global to window whereas the previous method explicitly accesses window. My preference would be to be explicit and use window.document.[etc]