Fix AngularJS controllers to be min-safe