Security module for AngularJS