add js to form validation, p. 54