Added client side javascript