Add JavaScript to client side validation.