i dont like the naming. also, single responsbility...? the `createBatch` function is currently doing two things:
1) attaching a listener to the submit event of #new_batch
2) implementing the callback for this event

the name `createBatch` really only applies to #2.... so this code can and should be split up into two methods which are properly name