Fix for Issue #12

Fixed customer JS to allow editing sales and invoices.