Calculator in Angularjs