Doesn't download if ajaxErrors, but currently prevents dialogue from opening.
Added jquery to update form to coffeescript