Don't use document.location.origin

It is not available on Firefox
Remove Category enum for now

This was never completed and makes a search for any item also include every
other item in the enum (i.e., sword -> axe).