adding js to reconcile incomplete payments