An attempt to make a cashflow statement using javascript, jquery, and angularJS