Jjava REST service and AngularJs