Using Angular.js to develop a register/tip counter total