Angularjs penrose client