Modified testEndpoint function in EndpointTestService class (AngularJS) to use  instead of . It makes it much easier to get response headers