Both HTTP requests are working with Angular JS. Final response is console logged