I am stuck not using AJAX for submitting av form (separate story...can\'t get filesaver.js to work) and use the below JS:
$(\'#form\').attr(\'action\', "