updating scope.availability based on min value from dates array, took off ng-change from checkbox for now