fix console warnings

Fixes errors due to an undefined `get_search_engine()` method and incorrect var name, ~~`parsed_url.host`~~ -> `referrer_url.host`.