Add client side javascript