checkMatch Function verifies both fields match Word1:
Word2:

Form input elements do have attributes onblur, onchange, and onfocus, so you could write for word2 onblur="checkMatch();"

For text input we do not use onchange w jQuery but rather keyup, keydown, etc.

also JavaScript puts the action in quotes addActionEvent( "blur", functionName, true or false), jQuery follows its standard object.method, where method is blur( functionName ), ...