Added JavaScript to handle form events, Added code to load words from web if required.