from home, added js handling for invoice submission