Use `window.location` instead of `document.location`

If a frame, image, or form is named "location" then document.location
will refer to that element instead of being an alias for `window.location`
see https://github.com/meteor/meteor/issues/2380