Loop Through Object Javascript Using Calculator Solving