add client side javascript