Also: If we're going to remove the hard-coded location, might as well handle cases that have a query string different from just `/`. Use `document.location`?