add JS function for installment and cancel an item
Merge pull request #75 from albertusatria/alb#updatePayments

add JS function for installment and cancel an item