Make $q more compatible with $http