renamed $scope.typing to $scope.userTyping for the autocomplete