made server work with angular ng-repeat example