Add silent mode to AngularJS