allow to 'save and send' invoices that need javascript, refs #3853