Add client side code