Java REST service and AngularJs