made more robust $http get (with promises)