client side js