fix js client invoice