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.