Changing AngularJS example to make it use java-jwt library.