added javascript to home and some field elements of form