Created word generation and checking functions, and jQuery just in case