Retrieve data from server using $http service