Angularjs to average scores