trying to understand how base / url affects AngularJS $http, currently the sample is broken