Match on the pathname so that it's environment independent
Match on the pathname so that it's environment independent

When testing in dev (or other) environments our URLs aren't consistent
with production. Make sure this JS works without requiring us being on
GOV.UK.

alphagov/static,kalleth/static,tadast/static,kalleth/static,kalleth/static,robinwhittleton/static,tadast/static,alphagov/static,tadast/static,tadast/static,alphagov/static,kalleth/static,robinwhittleton/static,robinwhittleton/static,robinwhittleton/static