Eliminate function onFormSubmitEventHandler, use closure instead.