Jira REST Client with AngularJS