switch firebase to use $http