Working simple servlet with AngularJS