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
Merge pull request #195 from mquandalle/window-location

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