BTW this is not copy-pasta from old code, all of `onSubmit` was brand new implementation. It duplicates exact default browser form functionality, but using AJAX.