Added client side JavaScript