Trying to make AngularJS min-safe