javascript needed to execute even for unknown word for the form to work properly