replaced isNumber with angular.isNumber