Add AngularJS rules