A angularJS based Cost of Goods analysis