Basic calculator functions performed using AngularJS