client side script