Remove `isClient` checks from client-only code

This script is only ever executed on the client, so doesn't need to have redundant `if (isClient) {...}` checks in place.
Merge pull request #762 from alphagov/refactor/isclient-isserver

Remove `isClient` checks from client-only code