Fetch data only after the user has stopped typing

Changed the $scope.change() function to make requests only
after the the user has stopped typing for 500ms by setting a
timeout.