Wrap client side code with settings conditional.