js of invoice payment stuff